package com.simen.hellobytes.log;

/**
 * @author Created by Simen.
 * @date 创建日期 2018/9/12 10:56
 * @modify 修改者 Simen
 */
public class SLog {

    private static final String TAG = "SLog";

    private static boolean DEBUG = false;

    public static void setDEBUG(boolean DEBUG) {
        SLog.DEBUG = DEBUG;
    }

    public static void logI(String message) {
        if (DEBUG) {
            System.out.println(message);
        }
    }

    public static void logE(String message) {
        if (DEBUG) {
            System.err.println(message);
        }
    }

    public static void logI(String tag, String message) {
        if (DEBUG) {
            System.out.println(tag + " " + message);
        }
    }

    public static void logE(String tag, String message) {
        if (DEBUG) {
            System.err.println(tag + " " + message);
        }
    }

}
